﻿<%@ Page Title="Manage Roles" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ManageRoles.aspx.cs" Inherits="Account_ManageRoles" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    
    <style type="text/css">
        .auto-style1 {
            height: 31px;
        }
        .auto-style2 {
            width: 259px;
        }
        .auto-style3 {
            height: 31px;
            width: 259px;
        }
        .auto-style4 {
            width: 317px;
        }
        .auto-style5 {
            height: 31px;
            width: 317px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <hgroup class="title">
        <h1><%: Title %>.</h1>
    </hgroup>
        <table style="width:100%;">
            <tr>
                <td class="auto-style2">Role Name:</td>
                <td class="auto-style4">

        <asp:TextBox ID="RoleName" runat="server"></asp:TextBox>
                </td>
                <td>
        <asp:Button ID="InsertRole" runat="server" OnClick="Insert_Role" Text="Add role" Width="97px" />

 
                </td>
            </tr>
            <tr>
                <td class="auto-style3">List of roles:</td>
                <td class="auto-style5">
                    <asp:DropDownList ID="RolesList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RolesList_SelectedIndexChanged1">
                    </asp:DropDownList>
                </td>
                <td class="auto-style1">
                    <asp:Button ID="Button1" runat="server" Text="Remove role" OnClick="Delete_Role" />
                </td>
            </tr>
            <tr>
                <td class="auto-style2">List of users for a specific role:</td>
                <td class="auto-style4">
                    <asp:GridView ID="ListOfUsers" runat="server" BackColor="White" BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" ShowHeader="False">
                        <AlternatingRowStyle BackColor="Gainsboro" />
                        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#0000A9" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#000065" />
                    </asp:GridView>
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>

 
</asp:Content>

